/*
 * @Author: 45F
 * @LastEditors: 45F
 * @Description: 权限
 * @Date: 2019-07-06 16:13:25
 * @LastEditTime: 2019-09-15 23:59:55
 */
import axios from '@/libs/api.request'

export default {
  // 登录
  postCommonLogin (data) {
    return axios.request({
      url: `/v1/user/login`,
      data: data,
      method: 'post'
    })
  },
  // 用户信息
  getCommonCurrentUser (data) {
    return axios.request({
      url: `/common/currentUser`,
      params: data,
      method: 'get'
    })
  },
  // 菜单权限
  getCurrentMenu () {
    return axios.request({
      url: `/common/currentMenu`,
      method: 'get'
    })
  },
  // 菜单权限
  getWaitNum () {
    return axios.request({
      url: `/processApproval/getWaitNum`,
      method: 'get'
    })
  },
  // 刷新Token
  getRefreshToken (data) {
    return axios.request({
      url: `/common/refreshToken`,
      method: 'get'
    })
  }
}
